const path = require('path')
const Datastore = require('nedb')

// 获得计算机"文档"位置
const dataLocation = "C:/UAV_database"

const database = {}
database.record = new Datastore({
    filename: path.join(dataLocation, '/record.db'),
    autoload: true
})

database.deploy = new Datastore({
    filename: path.join(dataLocation, './deploy.db'),
    autoload:true
})


module.exports = database